import React from 'react'
import { NavLink, Outlet } from 'react-router-dom'
export default function Home() {
  return (
    <>
      <div>我是Home组件内容</div>
      <div>
        <NavLink to={'news'}>news</NavLink>
        <span>  |   </span>
        <NavLink to={'message'}>message</NavLink>
      </div>
      <div>
        <Outlet/>
      </div>
    </>
  )
}
